package com.leyou.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.user.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {
    //按照用户名、密码查询用户
    @Select("select * from tb_user where username = #{username}")
    User queryUserByUserName(@Param("username") String username);
}
